<div class="ibox-content">
  <?php

/*
    var_dump(Yii::$app->getBehavior('access') );
    var_dump(\Yii::$app->authManager->getAssignments(1));
    var_dump(\Yii::$app->authManager->checkAccess(1,'/category/index'));


    if (\Yii::$app->user->can('/category/index')) {
      // update post
      var_dump('111111111');
    }



    //$aa = MenuHelper::getAssignedMenu(Yii::$app->user->id);
   // var_dump($aa);

*/
   $arr = backend\modules\rbac\components\MenuHelper::getAssignedMenu(Yii::$app->user->id);
    print_r($arr);

  ?>
<table class="table table-striped table-bordered">
  <thead>
  <tr>
      <th colspan="2" scope="col">服务器信息</th>
  </tr>
  </thead>
  <tbody>
  <tr>
      <th width="30%">服务器操作系统</th>
      <td><?php  echo PHP_OS; ?></td>
  </tr>
  <tr>
      <td>文件路径</td>
      <td><?php echo \Yii::$app->request->scriptFile;  ?></td>
  </tr>

  <tr>
      <td>Web 服务器:</td>
      <td><?php echo $_SERVER['SERVER_SOFTWARE'];  ?></td>
  </tr>
  <tr>
      <td>PHP 版本:</td>
      <td><?php echo PHP_VERSION;  ?></td>
  </tr>

  <tr>
      <td>安全模式:</td>
      <td><?php echo (boolean) ini_get('safe_mode') ?  '是':'否';  ?></td>
  </tr>
  <tr>
      <td>安全模式GID:</td>
      <td><?php echo (boolean) ini_get('safe_mode_gid') ?  '是':'否';  ?></td>
  </tr>
  <tr>
      <td>最大上传限制:</td>
      <td><?php echo get_cfg_var("upload_max_filesize")?get_cfg_var("upload_max_filesize"):"不允许上传附件";  ?></td>
  </tr>
  <tr>
      <td>最大执行时间:</td>
      <td><?php   echo get_cfg_var("max_execution_time")."秒";  ?></td>
  </tr>
  <tr>
      <td>运行占用最大内存:</td>
      <td><?php  echo get_cfg_var("memory_limit")?get_cfg_var("memory_limit"):"无" ;  ?></td>
  </tr>
  <tr>
      <td>字符编码</td>
      <td>utf-8</td>
  </tr>


  </tbody>
</table>


</div>